<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<!--[if IE 8]>			<html class="ie ie8"> <![endif]-->
<!--[if IE 9]>			<html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->	<html> <!--<![endif]-->
	<head>
		<meta charset="utf-8" />
		<title><?php echo ($system["sitename"]); ?>
        <?php if((CONTROLLER_NAME)== 'Product'): ?>-产品展示
        <?php elseif((CONTROLLER_NAME)== 'News'): ?>-行业资讯
        <?php elseif((CONTROLLER_NAME)== 'About' AND (ACTION_NAME)== 'index'): ?>-关于我们
        <?php else: ?>-联系我们<?php endif; ?>
        </title>
		<meta name="keywords" content=<?php echo ($system["keyword"]); ?> />
		<meta name="description" content=<?php echo ($system["description"]); ?> />

		<!-- mobile settings -->
		<meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1, user-scalable=0" />
		<!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]-->

		<!-- CORE CSS -->
		<link href="/Public/home/style/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />

		<!-- REVOLUTION SLIDER -->
		<link href="/Public/home/style/plugins/slider.revolution/css/extralayers.css" rel="stylesheet" type="text/css" />
		<link href="/Public/home/style/plugins/slider.revolution/css/settings.css" rel="stylesheet" type="text/css" />

		<!-- THEME CSS -->
		<link href="/Public/home/style/css/essentials.css" rel="stylesheet" type="text/css" />
		<link href="/Public/home/style/css/layout.css" rel="stylesheet" type="text/css" />

		<!-- PAGE LEVEL SCRIPTS -->
		<link href="/Public/home/style/css/header-1.css" rel="stylesheet" type="text/css" />
	</head>

	<body class="smoothscroll enable-animation">



		<!-- wrapper -->
		<div id="wrapper">


			<div id="header" class="sticky header-md clearfix">

				<!-- TOP NAV -->
				<header id="topNav">
					<div class="container">

						<!-- Mobile Menu Button -->
						<button class="btn btn-mobile" data-toggle="collapse" data-target=".nav-main-collapse">
							<i class="fa fa-bars"></i>
						</button>

						<!-- Logo -->
						<a class="logo pull-left scrollTo" href="/index.php/home">
                            <?php if(empty($system['logo'])): ?><img src="/Public/img/logo.png" alt="<?php echo ($system["sitename"]); ?>" />
                            <?php else: ?>
							<img src="/Public/<?php echo ($system["logo"]); ?>" alt="<?php echo ($system["sitename"]); ?>" /><?php endif; ?>
						 </a>
						<div class="navbar-collapse pull-right nav-main-collapse collapse submenu-dark">
							<nav class="nav-main">
								<ul id="topMain" class="nav nav-pills nav-main nav-onepage">
									<li>
										<a href="/index.php/home/Index" >
											首页
										</a>
									</li>
									<li <?php if((CONTROLLER_NAME)== 'Product'): ?>class="active"<?php endif; ?>>
										<a href="/index.php/home/Product">
											产品展示
										</a>
									</li>
									<li <?php if((CONTROLLER_NAME)== 'News'): ?>class="active"<?php endif; ?>>
										<a href="/index.php/home/News">
											行业资讯
										</a>
									</li>
									<li <?php if((CONTROLLER_NAME)== 'About' AND (ACTION_NAME)== 'index'): ?>class="active"<?php endif; ?>>
										<a href="/index.php/home/About">
											关于我们
										</a>
									</li>
									<li <?php if((ACTION_NAME)== 'contact'): ?>class="active"<?php endif; ?>>
										<a href="/index.php/home/About/contact">
											联系我们
										</a>
									</li><!-- OVERVIEW -->

								</ul>

							</nav>
						</div>

					</div>
				</header>
				<!-- /Top Nav -->

			</div>




			<section class="page-header page-header-xs">
				<div class="container">

					<h1>产品详情</h1>

					<!-- breadcrumbs -->
					<ol class="breadcrumb">
						<li><a href="/index.php/home/Index">首页</a></li>
						<li><a href="/index.php/home/Product/index">产品展示</a></li>
                        <li class="active">产品详情</li>
					</ol><!-- /breadcrumbs -->

				</div>
			</section>
			<!-- /PAGE HEADER -->




			<!-- -->
			<section>
				<div class="container">
					
					<!-- OWL SLIDER -->
					<div class="container">

						<div class="owl-carousel buttons-autohide controlls-over nomargin" data-plugin-options='{"items": 1, "autoPlay": 3500, "autoHeight": false, "navigation": true, "pagination": false, "transitionStyle":"fade", "progressBar":"false"}'>
							<div>
                          <?php if(empty($goods['photo'])): ?><img class="img-responsive" src="/Public/img/nopic.jpg" width="600" height="399" >
                          <?php else: ?>                                      
                          <img class="img-responsive" src="/Public/<?php echo ($goods["photo"]); ?>" alt="<?php echo ($goods["title"]); ?>"><?php endif; ?>
                            
							</div>
							<div>
                          <?php if(empty($goods['photo'])): ?><img class="img-responsive" src="/Public/img/nopic.jpg" width="600" height="399" >
                          <?php else: ?>                                      
                          <img class="img-responsive" src="/Public/<?php echo ($goods["photo"]); ?>" alt="<?php echo ($goods["title"]); ?>"><?php endif; ?>
							</div>
                          <?php if(empty($goods['photo'])): ?><img class="img-responsive" src="/Public/img/nopic.jpg" width="600" height="399" >
                          <?php else: ?>                                      
                          <img class="img-responsive" src="/Public/<?php echo ($goods["photo"]); ?>" alt="<?php echo ($goods["title"]); ?>"><?php endif; ?>
							</div>
						</div>

					</div>
					<!-- /OWL SLIDER -->

					
				</div>
			</section>
			<!-- / -->



			<!-- -->
			<section>
				<div class="container">

					<div class="row nomargin">
						
						<div class="col-md-12 col-sm-12">

							<!-- Subtitle -->
							<div class="heading-title heading-border">
								<h2><?php echo ($goods["title"]); ?> </h2>

					<ul class="blog-post-info list-inline">
                    	<li>
								<span style="font-weight:bold;">品牌：</span><span class="font-lato"><?php echo ($goods["pinpai"]["brand"]); ?></span>
						</li>
                        <li>
								<span style="font-weight:bold;">类别：</span><span class="font-lato"><?php echo ($goods["cate"]["name"]); ?></span>
						</li>
                         <?php if(!empty($goods['model'])): ?><li>
								<span style="font-weight:bold;">规格：</span><span class="font-lato"><?php echo ($goods["model"]); ?></span>
						</li><?php endif; ?>
                        <?php if($goods['price'] != 0): ?><li>
								<span style="font-weight:bold;">售价：</span><span class="font-lato"><?php echo ($goods["price"]); ?>元</span>
						</li><?php endif; ?>
                        <?php if(!empty($goods['num'])): ?><li>
								<span style="font-weight:bold;">库存：</span><span class="font-lato"><?php echo ($goods["num"]); ?></span>
						</li><?php endif; ?>
						<li>
							<a href="#">
								<i class="fa fa-clock-o"></i> 
								<span class="font-lato"><?php echo (date("Y-m-d H:i:s",$goods["date"])); ?></span>
							</a>
						</li>
					</ul>

							</div>
							<!-- /Subtitle -->

							<p><?php echo ($goods["content"]); ?></p>
						
						</div>

<!--						<div class="col-md-4 col-sm-4">
						
							<div class="panel panel-default">
								<div class="panel-body">
									
									<p class="font-lato size-18">产品参数</p>

									<ul class="portfolio-detail-list list-unstyled nomargin">
										<li><span>产品品牌:</span><?php echo ($goods["pinpai"]["brand"]); ?></li>
										<li><span>所属类别:</span><?php echo ($goods["cate"]["name"]); ?></li>
										<li><span>产品规格:</span><?php echo ($goods["model"]); ?></li>
										<li><span>产品售价:</span><?php echo ($goods["price"]); ?>元</li>
                                        <li><span>库存数量:</span><?php echo ($goods["num"]); ?></li>
									</ul>

								</div>
								
								<div class="panel-footer">

									 Social Icons 
                                    <?php echo ($system["sitename"]); ?>
									 /Social Icons 

								</div>

							</div>

						</div>-->

					</div>

				</div>
			</section>
			<!-- -->



			<!-- -->
			<section>
				<div class="container">

					<div class="heading-title heading-border">
						<h3>更多<span>产品</span></h3>
					</div>

					<div class="text-center">
						<div class="owl-carousel owl-padding-1 nomargin buttons-autohide controlls-over" data-plugin-options='{"singleItem": false, "items": "4", "autoPlay": 3500, "navigation": true, "pagination": false}'>
							<?php if(is_array($product)): $i = 0; $__LIST__ = $product;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><!-- item -->
							<div class="item-box">
								<figure>
									<span class="item-hover">
										<span class="overlay dark-5"></span>
										<span class="inner">

											<!-- lightbox -->
											<a class="ico-rounded lightbox" href="/Public/<?php echo ($vo["photo"]); ?>" data-plugin-options='{"type":"image"}'>
												<span class="fa fa-plus size-20"></span>
											</a>

											<!-- details -->
											<a class="ico-rounded" href="/index.php/home/Product/view/id/<?php echo ($vo["id"]); ?>">
												<span class="glyphicon glyphicon-option-horizontal size-20"></span>
											</a>

										</span>
									</span>

									<img class="img-responsive" src="/Public/<?php echo ($vo["photo"]); ?>" width="600" height="399" alt="<?php echo ($vo["title"]); ?>">
								</figure>

								<div class="item-box-desc">
									<h3><?php echo ($vo["title"]); ?></h3>
                                    <ul class="list-inline categories nomargin">
											<li><a href="#">包装规格</a></li>
										<li><a href="#"><?php echo ($goods["model"]); ?></a></li>
										</ul>
								</div>

							</div>
							<!-- /item --><?php endforeach; endif; else: echo "" ;endif; ?>


						</div>
					</div>

				</div>
			</section>
			<!-- / -->


﻿			<!-- FOOTER -->
           
			<footer id="footer">
				<div class="container">
                  
					<div class="row">
						
						<div class="col-md-4">
							<!-- Footer Logo -->
                            <?php if(empty($system['logo'])): ?><img class="footer-logo" src="/Public/img/logo.png" alt="<?php echo ($system["sitename"]); ?>" />
                            <?php else: ?>
							<img class="footer-logo" src="/Public/<?php echo ($system["logo"]); ?>" alt="<?php echo ($system["sitename"]); ?>" /><?php endif; ?>
							<!-- Small Description -->
							<?php echo ($system["sitename"]); ?><br />
                            <?php echo ($system["description"]); ?>

						</div>

						<div class="col-md-4">

							<!-- Latest Blog Post -->
							<h4 class="letter-spacing-1">联系方式</h4>

							<!-- Contact Address -->
							<address>
								<ul class="list-unstyled">
									<li class="footer-sprite address">
										<?php echo ($system["address"]); ?>
									</li>
									<li class="footer-sprite phone">
										座机: <?php echo ($system["tel"]); ?><br />
                                        
									</li>
									<li class="footer-sprite email">
										<a href="mailto:<?php echo ($system["email"]); ?>"><?php echo ($system["email"]); ?></a>
									</li>
								</ul>
							</address>
							<!-- /Contact Address -->
							<!-- /Latest Blog Post -->

						</div>

						<div class="col-md-4">

							<!-- Links -->
							<h4 class="letter-spacing-1">网站地图</h4>
							<ul class="footer-links list-unstyled">
								<li><a href="/index.php/home">首页</a></li>
								<li><a href="/index.php/home/product">产品展示</a></li>
								<li><a href="/index.php/home/news">行业资讯</a></li>
								<li><a href="/index.php/home/about">关于我们</a></li>
								<li><a href="/index.php/home/about/contact">联系我们</a></li>
							</ul>
							<!-- /Links -->

						</div>

					</div>

				</div>


				<div class="copyright">
					<div class="container  text-center">
                        <?php echo ($system["icp"]); ?><br />
						<?php echo ($system["copyright"]); ?>
					</div>
				</div>
			</footer>
            
			<!-- /FOOTER -->

		</div>
		<!-- /wrapper -->


		<!-- SCROLL TO TOP -->
		<a href="#" id="toTop"></a>


		<!-- PRELOADER -->
		<div id="preloader">
			<div class="inner">
				<span class="loader"></span>
			</div>
		</div><!-- /PRELOADER -->


		<!-- JAVASCRIPT FILES -->
		<script type="text/javascript">var plugin_path = '/Public/home/style/plugins/';</script>
		<script type="text/javascript" src="/Public/home/style/plugins/jquery/jquery-2.1.4.min.js"></script>

		<script type="text/javascript" src="/Public/home/style/js/scripts.js"></script>
		<!-- REVOLUTION SLIDER -->
		<script type="text/javascript" src="/Public/home/style/plugins/slider.revolution/js/jquery.themepunch.tools.min.js"></script>
		<script type="text/javascript" src="/Public/home/style/plugins/slider.revolution/js/jquery.themepunch.revolution.min.js"></script>
		<script type="text/javascript" src="/Public/home/style/js/view/demo.revolution_slider.js"></script>
	</body>
</html>